export const addBlur = function (color, depth) {
    if (color.indexOf('rgba') >= 0) {
        return color.substring(0, color.indexOf('.') - 1) + depth + ')';
    }
    return 'rgba' + color.substring(3, color.length - 1) + ', ' + depth + ')';
}